package com.zch.service.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zch.dao.EmployeeDao;
import com.zch.entities.Employee;
import com.zch.service.EmployeeService;

@Service("employeeService")

public class EmployeeServiceImpl implements EmployeeService{

	@Autowired
	private EmployeeDao employeeDao;
	
	@Transactional(readOnly=true)
	public List<Employee> getAllEmployee() {
		return employeeDao.getAllEmployee();
	}


	@Transactional(readOnly=true)
	public boolean insertEmployee(Employee employee) {
		return false;
	}

	@Transactional(readOnly=true)
	public boolean updateEmployee(Employee employee) {
		return false;
	}

	@Transactional(readOnly=true)
	public boolean deleteEmployee(Integer id) {
		return false;
	}

	@Transactional(readOnly=true)
	public Employee getEmployeeById(Integer id) {
		return null;
	}
    
}
